#!/bin/sh
# auto mail for system info
/bin/date +%F >> /tmp/sysinfo
echo "disk info: " >> /tmp/sysinfo
/bin/df  -h >> /tmp/sysinfo
echo >> /tmp/sysinfo	
echo "online users:" >> /tmp/sysinfo
/usr/bin/w >> /tmp/sysinfo
echo >> /tmp/sysinfo
echo "memory info:" >> /tmp/sysinfo
/usr/bin/free -m >> /tmp/sysinfo
echo >> /tmp/sysinfo
# write roo
/usr/bin/write root < /tmp/sysinfo #&& /bin/rm -rf /tmp/sysinfo
# crontab -e
# 0 9 * * 1-5 script


